package de.tabuma.adminarea;

import de.tabuma.lib.contentmanagement.FacadeInterface;
import de.tabuma.adminarea.logik.*;
import java.util.*;

/**
 * @author $Author$
 * @version $Revision$
 * @since $Date$
 */
public class AdminSettingFacade implements  FacadeInterface {
    public static int create(AdminSetting adminSetting, String user) {
        return (int) PMF.doCreate(adminSetting, user);
    }

    public int createElement(Object object, String user) {
        return create((AdminSetting) object, user);
    }

    public static void update(AdminSetting adminSetting, String user) {
        PMF.doUpdate(adminSetting, user);
    }

    public void updateElement(Object object, String user) {
        update((AdminSetting) object, user);
    }

    public static void remove(AdminSetting adminSetting, String user) {
        PMF.doRemove(adminSetting, user);
    }

    public void removeElement(int id, String user) {
        AdminSetting adminSetting = get(id);
        remove(adminSetting, user);
    }

    public static AdminSetting get(int id) {
        return PMF.get(id, new AdminSetting());
    }

    public Object getElement(int id) {
        return get(id);
    }

    public static List<AdminSetting> getList() {
        String key[] = null;
        String value[] = null;
        return PMF.get(key, value, new AdminSetting());
    }

    public List getElementList(String listParameter) {
        return getList();
    }



    public static List<AdminSetting> getList(String key) {
        String keys[] = {"key"};
        String values[] = {key};
        return PMF.get(keys, values, new AdminSetting());
    }
}
